package cc.yugu.yhdw.common.protocol.msg02;

import cc.yugu.yhdw.common.protocol.MsgCode;
import io.netty.buffer.ByteBuf;

/**
 * 终端登录(请求)
 */
public class Msg021000001 extends Msg021 {

    public String cabinetCode;
    public String validateCode;
    public String version;

    @Override
    public int getMsgCode() {
        return MsgCode.MSG_021000001.getCode();
    }

    @Override
    public void readData(ByteBuf buffer) {
        cabinetCode = readString(buffer);
        validateCode = readString(buffer);
        version = readString(buffer);
    }
}
